import request from '@/utils/request'

export function listLaboratories(params) {
  return request({
    url: '/api/laboratory/list-laboratories',
    method: 'get',
    params: params
  })
}
export function pageLaboratories(params) {
  return request({
    url: '/api/laboratory/page-laboratories',
    method: 'get',
    params: params
  })
}

export function addLaboratory(data) {
  return request({
    url: '/api/laboratory/add-laboratory',
    method: 'post',
    data
  })
}

export function updateLaboratory(data) {
  return request({
    url: '/api/laboratory/update-laboratory',
    method: 'post',
    data
  })
}

export function deleteLaboratory(id) {
  return request({
    url: '/api/laboratory/delete-laboratory/' + id,
    method: 'delete'
  })
}
